{include file="public/header" /}

<body>
    <div class="layui-tab">
        <div class="layui-tab-content">
            <!--还款单数-->
            <div class="layui-tab-item layui-show">
                <div class="layui-fluid">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <table id="LAY-user-manage_huankuan_dan" lay-filter="LAY-user-manage"></table>
                            <script type="text/html" id="table-useradmin-webuser">
                                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="qudao_danzi"><i class="layui-icon layui-icon-edit"></i>渠道详情</a>
                            </script>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

{include file="public/footer" /}
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script src="/dist/js/zoomify.min.js"></script>
<script>
    layui.use(['index', 'table', 'laydate', 'element'], function() {
        var $ = layui.$,
            form = layui.form,
            table = layui.table,
            laydate = layui.laydate;

        //还款单数
        table.render({
            elem: '#LAY-user-manage_huankuan_dan',
            even: true, //开启隔行背景
            url:"{:url('admin/sum/repaymentChannel',['time' => $time])}",
            toolbar: '#test-table-toolbar-toolbarDemo',
            title: '还款单数',
            cols: [
                [
                    {
                        field: 'name',
                        title: '渠道名称',
                        width: 110,
                        rowspan: 2,
                        fixed: 'left'
                    },
                    {
                        field: 'yhNum',
                        title: "<span lay-tips='当日到期应还订单数'>应还单数?</span>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'shNum',
                        title: "<span lay-tips='当日到期并已还款的订单数'>实还单数?</span>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'whNum',
                        title: "<span lay-tips='未还单数 = 应还单数-实还单数'>未还单数?</span>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'numHkLv',
                        title: "<span lay-tips='还款率 = (实还单数/应还单数)*100%'>还款率?</span>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'qeNum',
                        title: "<span lay-tips='应还单数中全额还清的订单数'>全额单数?</span>",
                        width: 100,
                        rowspan: 2,
                    }, {
                    field: 'zqNum',
                    title: "<span lay-tips='应还单数中展期的订单数【订单多次展期仅当一次计算】'>展期单数?</span>",
                    width: 100,
                    rowspan: 2,
                },
                    {
                        field: 'numQeLv',
                        title: "<span lay-tips='全额率 = (全额单数/应还单数)*100%'>全额率?</span>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'numZqLv',

                        title: "<span lay-tips='展期率 = (展期单数/应还单数)*100%'>展期率?</span>",
                        width: 100,
                        rowspan: 2,
                    }
                    , {
                    align: 'center1',
                    title: "<p style='text-align:center' lay-tips='用户第一笔借款视为新客'>新客?</p>",
                    colspan: 4
                }, {
                    align: 'center2',
                    title: "<p style='text-align:center' lay-tips='用户在已有一笔已完成订单基数上后续订单均属于老客订单'>老客?</p>",
                    colspan: 4
                }],
                [{
                    field: 'xkYhNum',
                    title: '应还单数',
                    width: 90,
                },
                    {
                        field: 'xkShNum',
                        title: '已还单数',
                        width: 90,
                    },
                    {
                        field: 'xkYhNum',
                        title: '未还单数',
                        width: 90,
                    },
                    {
                        field: 'xkWhNum',
                        title: '还款率',
                        width: 90,
                    },
                    {
                        field: 'lkYhNum',
                        title: '应还单数',
                        width: 90,
                    },
                    {
                        field: 'lkShNum',
                        title: '已还单数',
                        width: 90,
                    },
                    {
                        field: 'lkWhNum',
                        title: '未还单数',
                        width: 90,
                    },
                    {
                        field: 'numLkHkLv',
                        title: '还款率',
                        width: 90,
                    },
                ]
            ],
            page: true
        });

        //日期范围
        laydate.render({
            elem: '#test6',
            range: true
        });
    });
</script>
